package yl.hs.bmipfull.pojo.material;

import lombok.Data;
import lombok.EqualsAndHashCode;
import yl.hs.bmipfull.annotations.DBField;
import yl.hs.bmipfull.annotations.DBTable;
import yl.hs.bmipfull.pojo.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/*
 * RawMaterialTransferOrderEntity
 * @category
 * @author 谢景广
 * @date 2022-12-23
 */
@EqualsAndHashCode(callSuper = true)
@Data
@DBTable(disName = "原材调拨单", mapCode = "raw_material_transfer_order")
public class RawMaterialTransferOrderEntity extends BaseEntity {
    private Long id;
    @DBField(disName = "编号", mapCode = "sn",isSerialNumber = true,snPrefix = "YCDB")
    private String sn;
    private String rmCateSN;
    @DBField(disName = "原材类别名称", mapCode = "rmCate")
    private String rmCate;
    private String rmSN;
    @DBField(disName = "原材名称", mapCode = "rmName")
    private String rmName;
    @DBField(disName = "原材规格", mapCode = "rmSpec")
    private String rmSpec;
    @DBField(disName = "原材产地", mapCode = "brand")
    private String brand;
    private String shipWhSN;
    @DBField(disName = "调出仓库", mapCode = "shipWhName")
    private String shipWhName;
    private String receiptWhSN;
    @DBField(disName = "调入仓库", mapCode = "receiptWhName")
    private String receiptWhName;
    @DBField(disName = "车牌号", mapCode = "truckPlate")
    private String truckPlate;
    @DBField(disName = "回皮时间", mapCode = "backTime")
    private Date backTime;
    @DBField(disName = "皮重", mapCode = "tareWeight")
    private BigDecimal tareWeight = BigDecimal.ZERO;
    @DBField(disName = "出厂时间", mapCode = "outTime")
    private Date outTime;
    @DBField(disName = "毛重", mapCode = "grossWeight")
    private BigDecimal grossWeight = BigDecimal.ZERO;
    @DBField(disName = "净重", mapCode = "netWeight")
    private BigDecimal netWeight = BigDecimal.ZERO;
    private String handleSN;
    @DBField(disName = "过磅员", mapCode = "handleName")
    private String handleName;
    private String signUserSN;
    @DBField(disName = "签收用户", mapCode = "signUserName")
    private String signUserName;
    @DBField(disName = "签收时间", mapCode = "signTime")
    private Date signTime;
    @DBField(disName = "签收拍照", mapCode = "signPic")
    private String signPic;
    @DBField(disName = "签收签名", mapCode = "signSVG")
    private String signSVG;
    @DBField(disName = "签收备注", mapCode = "signRemark")
    private String signRemark;

    @DBField(disName = "状态", mapCode = "state")
    private short state;
    @DBField(disName = "备注", mapCode = "remark")
    private String remark;
    @DBField(disName = "创建时间", mapCode = "addTime")
    private Date addTime;
}
